package com.duofan.gmall.auth.feign;

import com.duofan.gmall.auth.vo.SocialUser;
import com.duofan.gmall.auth.vo.UserLoginVo;
import com.duofan.gmall.auth.vo.UserRegVo;
import com.duofan.gmall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("gmall-member")
public interface MemberFeignService {
    @PostMapping("/member/member/reg")
    R reg(@RequestBody UserRegVo vo);

    @PostMapping("/member/member/login")
    R login(@RequestBody UserLoginVo vo);

    @PostMapping("/member/member/oauth2/login")
    R oauth2Login(@RequestBody SocialUser vo);
}
